package com.sgs.preorder.domain.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "soda-notes", path = "notes", fallbackFactory = ReportClientFallBackFactory.class, decode404 = false)
@Component
public interface ReportClient {

    @RequestMapping(value = "report/getReportSimplify/{reportNo}", method = RequestMethod.GET, consumes = "application/json;charset=UTF-8")
    @ResponseBody
    ReportSimplifyDTO getReportSimplify(@PathVariable("reportNo") String reportNo);
}
